from django.contrib import admin
from .models import Article
from .models import Like


# Register your models here.

@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title', 'context', 'auther')
    search_fields = list_display
    list_filter = list_display


@admin.register(Like)
class LikeAdmin(admin.ModelAdmin):
    list_display = ('article', 'user')
    search_fields = list_display
    list_filter = list_display
